from django.urls import path
from .views import addauthor, showauthor, delauthor, addblog, search

urlpatterns = [
    path('addauthor/', addauthor, name='addauthor'),  # 添加作者
    path('addblog/', addblog, name='addblog'),  # 添加博客
    path('showauthor/', showauthor, name='showauthor'),  # 展示作者
    path('delauthor/<int:id>', delauthor, name='delauthor'),  # 删除作者
    path('search/<int:id>', search, name='search'),  # 反向查询
]
